package club.caihappy.store.mapper;

import club.caihappy.store.entity.Order;
import club.caihappy.store.entity.OrderItem;

/**
 * 订单的持久层接口
 * Created by 百岁 on 2022/3/30
 **/
public interface OrderMapper {
    /**
     * 插入订单数据
     *
     * @param order
     * @return
     */
    Integer insertOrder(Order order);

    /**
     * 插入订单项数据
     *
     * @param orderItem
     * @return
     */
    Boolean insertOrderItem(OrderItem orderItem);
}
